package org.sws.infrastructure.persistent.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouter;
import org.apache.ibatis.annotations.Mapper;
import org.sws.domain.activity.model.entity.ActivityAccountDayEntity;
import org.sws.infrastructure.persistent.po.RaffleActivityAccountDay;

/**
 * @author songwenshuai
 * @description 抽奖活动账户表-日次数
 */
@Mapper
public interface IRaffleActivityAccountDayDao {
    @DBRouter
    ActivityAccountDayEntity queryactivityDayAccount(String userId, Long activityId, String day);

    int updateActivityAccountDaySubtractionQuota(RaffleActivityAccountDay activityAccountDay);

    void insert(RaffleActivityAccountDay activityAccountDay);

    @DBRouter
    Integer queryRaffleActivityAccountDayPartakeCount(RaffleActivityAccountDay raffleActivityAccountDay);

    void addAccountQuota(RaffleActivityAccountDay raffleActivityAccountDay);

    @DBRouter
    RaffleActivityAccountDay queryActivityAccountDayByUserId(RaffleActivityAccountDay raffleActivityAccountDay);
}
